POV-Ray : Newsgroups : povray.unofficial.patches : megapov bug: condition inside declaration of function{pigment{}} : megapov bug: condition inside declaration of function{pigment{}} Server Time
8 Jul 2024 16:09:50 EDT (-0400)
  megapov bug: condition inside declaration of function{pigment{}}  
From: Wlodzimierz ABX Skiba
Date: 22 Aug 2001 05:44:27
Message: <3b837efb@news.povray.org>
This construction works fine

#declare Q=no;
#declare Radial=pigment{radial#if(Q)turbulence.3#end}

and this not

#declare Q=no;
#declare Radial=function{pigment{radial#if(Q)turbulence.3#end}}

error: No matching } in pigment, # found instead.

MegaPOV 0.6a under Windows NT 4 - PII 233 128 MB

--
#macro Sig(A,B,X)_(A,B)_(B,X)_(X,A)#end#macro _(A,B)cylinder{<A.x,A.y,3>,<B.u,
B.v,3>.1,9}#end global_settings{max_trace_level 9}light_source{0 1}camera{up y
*4right-3*x}blob{_(<3,1>,<1,-5>)_(<2,-2>,<4,-2>)Sig(x,<-1,1.5>,<1,3>)_(z-1,z-4
)pigment{rgb 1}}box{-3 3pigment{rgb 0}finish{reflection 1}hollow} // POV-Ray31


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.